#include "Model.h"
#include "GeoPoint.h"

Model::Model(): QObject()
{
}
//--------------------------------------------------------------------------------
Model::~Model()
{
    foreach(GeoPoint* point, _points)
    {
        delete point;
    }
}
//--------------------------------------------------------------------------------
void Model::addPoint(float x, float y)
{
    GeoPoint* point = new GeoPoint(x, y);
    _points.append(point);

    emit onPointAdded(x, y);
}

//--------------------------------------------------------------------------------
void Model::save()
{
    qDebug("Model saved!");
}
//--------------------------------------------------------------------------------
